//官方圈子-模板

//引入组件库
var app = sm("do_App");
var page = sm("do_Page");
var nf = sm("do_Notification");
var circleUrl = require("url/circle");
var http = require("helper/http");
var userUtil = require("helper/user");
var common = require("common");

//声明UI变量
var root=ui("$");  //$表示当前视图的根UI
//var do_ALayout_main=ui("do_ALayout_main");
var do_ImageView_icon=ui("do_ImageView_icon");
var do_Label_title=ui("do_Label_title");
var do_Label_desc=ui("do_Label_desc");

//设置数据绑定的映射关系
root.setMapping({
	"do_Label_title.tag":"id",
	"do_Label_title.text":"name",
	"do_Label_desc.text":"remark",
	"do_ImageView_icon.source":"fullLogo",
	"lableAuditStatus.tag" : "auditStatus",
	"lableAuditStatus.visible" : "showAuditStatus"
});

root.on("dataRefreshed", function(){
	var auditStatus = ui("lableAuditStatus").tag;//审批状态
	if(auditStatus== "1"){
		ui("lableAuditStatus").text =  "待审核";
	}else if(auditStatus== "2"){
		ui("lableAuditStatus").text =  "审核通过";
	}else if(auditStatus== "3"){
		ui("lableAuditStatus").text =  "审核不通过";
	}
		
});
